/**
 * CS543 HW4 Joseph Meyer
 */
package edu.src.logger;

/**
 * Generic Logger
 * Implement log4j, if time
 * 
 * @author meyer
 */
public class Logger {

	private Class<?> clazz;
	/**
	 * Constructor
	 */
	public Logger(Class<?> clazz) {
		this.clazz = clazz;
	}
	
	public void info(String message) {
		System.out.println(this.clazz.getName() + ": " + message);
	}
	public void error(String message) {
		System.err.println(this.clazz.getName() + ": " + message);
	}
	public void error(Throwable t) {
		System.err.println(this.clazz.getName());
		t.printStackTrace();
	}
	public void error(String message, Throwable t) {
		System.err.println(this.clazz.getName() + ": " + message);
		t.printStackTrace();
	}

}
